.class final Lcom/waiqin365/lightapp/product/e/d;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Landroid/content/Context;

.field final synthetic b:Lcom/waiqin365/lightapp/product/c/g;

.field final synthetic c:Z


# direct methods
.method constructor <init>(Landroid/content/Context;Lcom/waiqin365/lightapp/product/c/g;Z)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    iput-boolean p3, p0, Lcom/waiqin365/lightapp/product/e/d;->c:Z

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    const v3, 0x7f08013b

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/product/b/a/q;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/b/a/q;->b()Z

    move-result v1

    if-eqz v1, :cond_9

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/product/b/a/q;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_6

    iget-object v1, v0, Lcom/waiqin365/lightapp/product/b/a/q;->d:Ljava/util/HashMap;

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v2}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/waiqin365/base/db/offlinedata/w;->a(Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v2}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/base/db/jxccache/f;->b()Z

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v2}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/base/db/jxccache/f;->c()Z

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/b/a/q;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/b;

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v3}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v3

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Lcom/waiqin365/lightapp/product/d/b;)Z

    move-result v3

    if-eqz v3, :cond_0

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v3}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v3

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/d/b;->a:Ljava/util/List;

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/jxccache/f;->c(Ljava/util/List;)Z

    goto :goto_0

    :cond_1
    invoke-static {}, Lcom/waiqin365/lightapp/product/o;->a()Lcom/waiqin365/lightapp/product/o;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/o;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_3

    invoke-static {}, Lcom/waiqin365/lightapp/product/o;->a()Lcom/waiqin365/lightapp/product/o;

    move-result-object v0

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/o;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_2
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/b;

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v3}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v3

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Lcom/waiqin365/lightapp/product/d/b;)Z

    move-result v3

    if-eqz v3, :cond_2

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v3}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v3

    iget-object v0, v0, Lcom/waiqin365/lightapp/product/d/b;->a:Ljava/util/List;

    invoke-virtual {v3, v0}, Lcom/waiqin365/base/db/jxccache/f;->c(Ljava/util/List;)Z

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/product/c/g;->a(Ljava/lang/String;)V

    :cond_4
    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    invoke-interface {v0}, Lcom/waiqin365/lightapp/product/c/g;->a()V

    :cond_5
    return-void

    :cond_6
    iget-object v0, v0, Lcom/waiqin365/lightapp/product/b/a/q;->c:Ljava/lang/String;

    const-string/jumbo v1, ""

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    :cond_7
    iget-boolean v1, p0, Lcom/waiqin365/lightapp/product/e/d;->c:Z

    if-eqz v1, :cond_8

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    const v3, 0x7f0802c1

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ","

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    const v3, 0x7f08068b

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ":"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v1, v2}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;Landroid/content/Context;)V

    :cond_8
    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    invoke-interface {v1, v0}, Lcom/waiqin365/lightapp/product/c/g;->b(Ljava/lang/String;)V

    goto :goto_2

    :cond_9
    iget-boolean v0, p0, Lcom/waiqin365/lightapp/product/e/d;->c:Z

    if-eqz v0, :cond_a

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-virtual {v0, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;Landroid/content/Context;)V

    :cond_a
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/e/d;->b:Lcom/waiqin365/lightapp/product/c/g;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/e/d;->a:Landroid/content/Context;

    invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/waiqin365/lightapp/product/c/g;->b(Ljava/lang/String;)V

    goto/16 :goto_2
.end method
